<%--
    Document   : index
    Created on : Oct 17, 2009, 4:41:57 PM
    Author     : Rui


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <a href="http://localhost:8080/FA/Users?action=add">Add a user</a>

        <h1>Delete a user</h1>
        <h1>Update a user</h1>
        <h1>View a user</h1>
    </body>
</html>
--%>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>User Service Test</title>
<script type="text/javascript">
function showform(){
   document.getElementById("addForm").style.display="block";
    }
function hideform(){
   document.getElementById("addForm").style.display="none";
   }

 </script>
</head>

<body>
    <h1><a onclick="showform()" >Add a user </a> </h1>
<form id="addForm" action="Users" method="post" style="display:none"><table width="272" border="0">
  <tr>
    <td width="104">User name:</td>
    <td width="158"><input name="UserName" type="text" /></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><input name="Password" type="password" /></td>
  </tr>
  <tr>
    <td>Email address </td>
    <td><input name="Email" type="text" /></td>
  </tr>
  <tr>
    <td><input type="submit" name="Submit" value="Submit"    /></td>
    <td><input id="cancel" type="button" value="Cancel" onclick="hideform()" /></td>
  </tr>


</table>
</form>
    <h1><a href="search" >Show all users </a> </h1>
</body>
</html>
